package com.hjy.product.feign;

import com.hjy.common.to.es.SkuEsModel;
import com.hjy.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("gulimall-search")
public interface SearchFeignService {
    /**
     * 保存 sku数据
     * @param list
     * @return
     */
    @RequestMapping("/search/saveskus")
    R saveSkuProducts(@RequestBody List<SkuEsModel> list);
}
